package de.sonnentempel.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@Entity
@Table(name = "besuch")
public class Besuch extends SuperEntity{
	
	private Integer bankNummer;
	private Date datum;
	@ManyToOne
	@JoinColumn
	private Kunde kunde;
	
	public Besuch(){
		
	}
	
	public Besuch(Integer bankNummer, Date datum, Kunde kunde) {
		super();
		this.bankNummer = bankNummer;
		this.datum = datum;
		this.kunde = kunde;
	}

	public Integer getBankNummer() {
		return bankNummer;
	}

	public void setBankNummer(Integer bankNummer) {
		this.bankNummer = bankNummer;
	}

	public Date getDatum() {
		return datum;
	}

	public void setDatum(Date datum) {
		this.datum = datum;
	}

	public Kunde getKunde() {
		return kunde;
	}

	public void setKunde(Kunde kunde) {
		this.kunde = kunde;
	}
	
	
	
	
	
}

